# find examples/base-helloworld | grep -E '.h$|.cpp$|.ui$' | sort
add_executable(example-base-helloworld
    examples/base-helloworld/base-helloworld.cpp
    examples/base-helloworld/basehelloworldmainwindow.h
    examples/base-helloworld/basehelloworldmainwindow.cpp
    examples/base-helloworld/basehelloworldmainwindow.ui
)
target_link_libraries(example-base-helloworld Qt${QT_VERSION_MAJOR}::Widgets)

# find examples/font-text-view | grep -E '.h$|.cpp$|.ui$' | sort
add_executable(example-font-text-view
    examples/font-text-view/font-text-view.cpp
    examples/font-text-view/fonttextviewmainwindow.h
    examples/font-text-view/fonttextviewmainwindow.cpp
    examples/font-text-view/fonttextviewmainwindow.ui
    constants/fontdeclare.h
    font/Fira_Code/font.qrc
    font/SourceCodePro/font.qrc
    font/JetBrainsMono-2.304/font.qrc
    font/Cascadia_Mono/font.qrc
)
target_link_libraries(example-font-text-view Qt${QT_VERSION_MAJOR}::Widgets)
target_compile_definitions(example-font-text-view PUBLIC FONT_DECLARE_OWNER_FONT)


# find examples/linux-open-in-terminal | grep -E '.h$|.cpp$|.ui$' | sort
add_executable(example-linux-open-in-terminal
    examples/linux-open-in-terminal/linux-open-in-terminal.cpp
    examples/linux-open-in-terminal/linuxopeninterminalmainwindow.h
    examples/linux-open-in-terminal/linuxopeninterminalmainwindow.cpp
    examples/linux-open-in-terminal/linuxopeninterminalmainwindow.ui
    examples/linux-open-in-terminal/linuxterminalhelper.cpp
    examples/linux-open-in-terminal/linuxterminalhelper.h
)
target_link_libraries(example-linux-open-in-terminal Qt${QT_VERSION_MAJOR}::Widgets)

# find examples/frp-gui | grep -E '.h$|.cpp$|.ui$' | sort
add_executable(example-frp-gui
    examples/frp-gui/frp-gui.cpp
    examples/frp-gui/frpguimainwindow.h
    examples/frp-gui/frpguimainwindow.cpp
    examples/frp-gui/frpguimainwindow.ui
)
target_link_libraries(example-frp-gui Qt${QT_VERSION_MAJOR}::Widgets)
spark_framework_include_with_git(example-frp-gui
    https://gitee.com/spark-framework-libs/spark-framework-features
    FEATURES baseutil)


# find examples/svg-convert | grep -E '.h$|.cpp$|.ui$' | sort
add_executable(example-svg-convert
    examples/svg-convert/imagehelper.cpp
    examples/svg-convert/imagehelper.h
    examples/svg-convert/svg-convert.cpp
    examples/svg-convert/svgconvertmainwindow.cpp
    examples/svg-convert/svgconvertmainwindow.h
    examples/svg-convert/svgconvertmainwindow.ui
)
find_package(Qt${QT_VERSION_MAJOR}Svg)
target_link_libraries(example-svg-convert Qt${QT_VERSION_MAJOR}::Widgets Qt${QT_VERSION_MAJOR}::Svg)
